package com.zt.bigdata.document;

import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @Author: zhangtong
 * @Date: 2018/9/13 下午6:05
 */
@Document(collection = "customer")
public class Customer extends BaseDoc {


    private String name;
    private Boolean sex;
    private String address;
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getSex() {
        return sex;
    }

    public void setSex(Boolean sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                ", address='" + address + '\'' +
                ", age=" + age +
                '}';
    }
}